<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
    </style>
</head>
<body>
    <h1>表单进阶-复选框（多选）</h1>
    <div>
        <div>你的兴趣爱好</div>
        <div>
            <input type="checkbox" name="aaa" checked="checked">抽烟
            <input type="checkbox" name="aaa">喝酒
            <input type="checkbox" name="aaa">搞对象
        </div>
        <div>你的特长</div>
        <div>
            <input type="checkbox" name="aaa" id="fight" checked>
            <label for="fight">打架</label>
            <input type="checkbox" name="aaa" id="play">
            <label for="play">玩游戏</label>
            <input type="checkbox" name="aaa" id="music">
            <label for="music">听音乐</label>
        </div>
    </div>
</body>
</html>